package com.lx.entity;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author c先生
 * @date 2022年05月05日 下午 3:59:40
 * @describe
 */

public class Trade {
    private Integer transId;
    private String cardId;
    private Double transMoney;
    private Integer businessType;
    private Date transTime;
    private String payeeCard;
    private String remark;

    public Trade() {
    }

    public Trade(Integer transId, String cardId, Double transMoney, Integer businessType, Date transTime, String payeeCard, String remark) {
        this.transId = transId;
        this.cardId = cardId;
        this.transMoney = transMoney;
        this.businessType = businessType;
        this.transTime = transTime;
        this.payeeCard = payeeCard;
        this.remark = remark;
    }

    public Integer getTransId() {
        return transId;
    }

    public void setTransId(Integer transId) {
        this.transId = transId;
    }

    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    public Double getTransMoney() {
        return transMoney;
    }

    public void setTransMoney(Double transMoney) {
        this.transMoney = transMoney;
    }

    public Integer getBusinessType() {
        return businessType;
    }

    public void setBusinessType(Integer businessType) {
        this.businessType = businessType;
    }

    public Date getTransTime() {
        return transTime;
    }

    public void setTransTime(Date transTime) {
        this.transTime = transTime;
    }

    public String getPayeeCard() {
        return payeeCard;
    }

    public void setPayeeCard(String payeeCard) {
        this.payeeCard = payeeCard;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        return "交易编号:" + transId +
                "  银行卡号:" + cardId +
                "  交易金额:" + transMoney +
                "  交易类型:" + businessType +
                "  交易时间:" + sdf.format(transTime) +
                "  收款人账号:" + payeeCard +
                "  备注:" + remark;
    }
}
